package com.yunc.user.sys.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yunc.common.core.result.R;
import com.yunc.user.sys.entity.SysUser;

import java.util.List;
import java.util.Set;

/**
 * 用户信息service层接口
 *
 * @author taocongcong
 * @create 2017-12-15 13:45
 */
public interface ISysUserService extends IService<SysUser> {

    List<String> queryMenuIdByUserId(String userId);

    Set<String> queryUserMenuPermsSet(String userId);

    List<String> queryUserMenuPermsList(String userId);

    List<String> queryMenuIdByRoleId(String roleId);

    IPage<SysUser> pageInfo(Page<SysUser> page, SysUser sysUser);

    /**
     * 保存用户,更新权限
     */
    R saveUser(SysUser user);

    SysUser getByLoginName(String loginName);

    R updateUser(SysUser user);
}
